<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
  <style>
    .list li{
      width: 50px;
      height: 50px;
      border:1px solid #000;
      text-align:center;
      line-height: 50px;
      float:left;
      list-style: none;
      cursor: pointer;
    }
    .list li:hover{
      background-color: #f00;
    }
  </style>
</head>
<body>
  <div id="app">
    <img :src="url" alt="">
    <ul class="list">
      <li @click="fun1">1</li>
      <li @click="fun2">2</li>
      <li>3</li>
      <li>4</li>
      <li>5</li>
    </ul>
  </div>
  <script src="../Dev-tools/vue.js"></script>
  <script>
    new Vue({
      el:"#app",
      data:{
        url:"../lib/images/2.jpg"
      },
      methods:{
        fun1(){
          this.url = "../lib/images/0.jpg"
        },
        fun2(){
          this.url = "../lib/images/1.jpg"
        }
      }
    })
  </script>
</body>
</html>